﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.WeApp
{
    /// <summary>
    ///店铺小程序
    /// </summary>
    [TableName("weapp_storeapp")]
    [PrimaryKey("storeappid")]
    public class StoreApplication
    {
        /// <summary>
        /// 
        /// </summary>
        public int StoreAppId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Logo { get; set; }
        /// <summary>
        /// 模板ID
        /// </summary>
        public int AppId { get; set; }
        /// <summary>
        /// 模板编号
        /// </summary>
        public int TemplateId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int StoreId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int AuthorizationId { get; set; }
        

        /// <summary>
        /// 开发状态0:未知，1:待上传，2:已上传，3：待审核 4:审核结束，5:已发布
        /// </summary>
        public int DevStatus { get; set; }
        /// <summary>
        /// 提交审核后的微信编号
        /// </summary>
        public long AuditId { get; set; }
        /// <summary>
        /// 审核结果
        /// </summary>
        public string AuditInfo { get; set; }

        /// <summary>
        /// 是否需要更新
        /// </summary>
        public bool NeedUpdate { get; set; }
        /// <summary>
        /// 最近上线发布时间
        /// </summary>
        public DateTime ReleaseTime { get; set; }
        
        /// <summary>
        /// 用户自定义小程序TabBar配置
        /// </summary>
        public string UserTabBar { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime CommitTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public StoreApplication()
        {
            AuditId = 0;
            AuditInfo = string.Empty;
            ReleaseTime=new DateTime(1900,1,1);
            UploadTime = CommitTime = new DateTime(1900, 1, 1);
            UserTabBar = string.Empty;
        }
    }
}
